package com.turkcell.dv.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "P_PRIVILEGE")
public class PrivilegeDOM implements java.io.Serializable {
	
	private static final long serialVersionUID = -6080483183660674842L;
	private Long id;
	private String name;
	private String createdBy;
	private Date createdDate;

	public PrivilegeDOM() {
	}

	@Id
	@Column(name = "ID", unique = true, nullable = false)
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "NAME", nullable = false, length = 45)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public String toString() {
		return "id=" + id + ", name=" + name + ", createdBy=" + createdBy  + ", createDate=" + createdDate;
	}

}